Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▼121.10ms] Passed 4 tests
Server-side resources used by StudyPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.97 ▲0.25 | 35.73 ▲11.32 |
Dashboard /wp-admin | 3.32 ▲0.27 | 79.06 ▲7.92 |
Posts /wp-admin/edit.php | 3.37 ▲0.25 | 76.28 ▲16.81 |
Add New Post /wp-admin/post-new.php | 5.62 ▲0.18 | 127.28 ▼520.45 |
Media Library /wp-admin/upload.php | 3.20 ▲0.20 | 62.66 ▲25.62 |
Parameters /wp-admin/admin.php?page=sp_parameters | 3.30 | 82.15 |
Modifier Leçon /wp-admin/admin.php?page=mod-lesson | 3.37 | 66.08 |
Modifier Cours /wp-admin/admin.php?page=mod-course | 3.33 | 66.34 |
Modifier Quiz /wp-admin/admin.php?page=mod-quiz | 3.45 | 66.16 |
Quizs /wp-admin/admin.php?page=quizs | 3.44 | 64.76 |
Courses /wp-admin/admin.php?page=courses | 3.31 | 63.20 |
Result Quiz /wp-admin/admin.php?page=result-quiz | 3.30 | 61.41 |
Lessons /wp-admin/admin.php?page=id_Cours | 3.39 | 64.55 |
Help /wp-admin/admin.php?page=sp_help | 3.20 | 55.12 |
Server storage [IO: ▲3.14MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 179 new files
Database: 14 new tables, no new options
New tables |
---|
wp_studypress_rate_quality |
wp_studypress_course_category |
wp_studypress_propositions |
wp_studypress_gcourse |
wp_studypress_course |
wp_studypress_slide |
wp_studypress_rate_domain |
wp_studypress_domain |
wp_studypress_questions |
wp_studypress_quiz_result |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for StudyPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,737 ▲100 | 16.08 ▲0.52 | 7.36 ▼2.33 | 50.93 ▼2.27 |
Dashboard /wp-admin | 3,021 ▲90 | 6.23 ▲0.29 | 146.81 ▼39.73 | 137.91 ▲3.68 |
Posts /wp-admin/edit.php | 2,782 ▲46 | 2.66 ▼0.03 | 72.44 ▼6.54 | 99.84 ▲10.32 |
Add New Post /wp-admin/post-new.php | 1,721 ▲127 | 18.77 ▼0.09 | 367.20 ▼19.30 | 115.12 ▲2.02 |
Media Library /wp-admin/upload.php | 1,880 ▲73 | 5.16 ▲0.14 | 142.49 ▼18.88 | 145.39 ▲24.26 |
Parameters /wp-admin/admin.php?page=sp_parameters | 1,894 | 2.61 | 59.58 | 127.34 |
Modifier Leçon /wp-admin/admin.php?page=mod-lesson | 1,314 | 3.44 | 71.75 | 88.58 |
Modifier Cours /wp-admin/admin.php?page=mod-course | 1,314 | 3.44 | 73.01 | 82.39 |
Modifier Quiz /wp-admin/admin.php?page=mod-quiz | 1,317 | 3.38 | 72.25 | 94.57 |
Quizs /wp-admin/admin.php?page=quizs | 1,762 | 3.57 | 79.68 | 159.17 |
Courses /wp-admin/admin.php?page=courses | 1,761 | 3.65 | 78.62 | 135.84 |
Result Quiz /wp-admin/admin.php?page=result-quiz | 1,386 | 2.42 | 59.74 | 107.71 |
Lessons /wp-admin/admin.php?page=id_Cours | 1,782 | 3.58 | 75.36 | 151.71 |
Help /wp-admin/admin.php?page=sp_help | 1,784 | 2.39 | 55.48 | 130.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 14 tables in the database
- wp_studypress_gcourse
- wp_studypress_quiz_result
- wp_studypress_course
- wp_studypress_slide
- wp_studypress_propositions
- wp_studypress_rate_quality
- wp_studypress_activity
- wp_studypress_domain
- wp_studypress_visite
- wp_studypress_configuration
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=result-quiz
- > Notice in wp-content/plugins/studypress/Views/admin/resultQuiz.view.php+172
Undefined index: id
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/studypress/controllers/ratingQuality.controller.php
- > /wp-content/plugins/studypress/controllers/ratingDomain.controller.php
- 46× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AbstractActivityManager' not found in wp-content/plugins/studypress/Class/QuizManager.class.php:3
- > PHP Warning
Use of undefined constant __ROOT_PLUGIN__ - assumed '__ROOT_PLUGIN__' (this will throw an Error in a future version of PHP) in wp-content/plugins/studypress/Views/admin/lesson.view.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function isLoggedIn() on null in wp-content/plugins/studypress/Views/inc/js/rateSystem.php:22
- > PHP Fatal error
Uncaught Error: Class 'StudyPressUserWP' not found in wp-content/plugins/studypress/notices.php:10
- > PHP Fatal error
require_once(): Failed opening required '__ROOT_PLUGIN__Views/includeCSS.php' (include_path='.:/usr/share/php') in wp-content/plugins/studypress/Views/admin/lesson.view.php on line 5
- > PHP Warning
require_once(__ROOT_PLUGIN__Views/includeCSS.php): failed to open stream: No such file or directory in wp-content/plugins/studypress/Views/admin/configuration.view.php on line 7
- > PHP Fatal error
Uncaught Error: Call to a member function _e() on null in wp-content/plugins/studypress/Views/model/quiz/multiple.php:16
- > PHP Notice
Undefined variable: tr in wp-content/plugins/studypress/Views/admin/domain.view.php on line 1
- > PHP Notice
Undefined variable: tr in wp-content/plugins/studypress/Views/model/quiz/multiple.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'AbstractActivity' not found in wp-content/plugins/studypress/Class/Quiz.class.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: You are using too many tags: 27 tag instead of maximum 10
- Screenshots: Please add images for these screenshots: #1 (Course home page contaning lessons and quizzes), #2 (Lesson first page (here in full screen. It can be integrated in posts and pages)), #3 (Lesson with a multimedia slide), #4 (Lesson with a video integration), #5 (Quiz first page (here in full screen. It can be integrated in posts and pages)), #6 (Multiple choices question), #7 (Quiz result for students), #8 (Quiz result details for students), #9 (Results of a quiz for teachers), #10 (Detail results of a quiz for teachers), #11 (Lesson and quiz ratings (Can be extended for multi criteria ratings)), #12 (Courses list), #13 (Add a new course (categories and authors assignement)), #14 (Lessons list for authors), #15 (Create a new lesson with drag and drop slides), #16 (Lesson detail), #17 (Slide content editing), #18 (Create a new quiz with drag and drop questions), #19 (Question with its answers editing)
studypress/Study-Press.php 85% from 13 tests
This is the main PHP file of "StudyPress" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("studypress.php" instead of "Study-Press.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 213 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin19,078 lines of code in 112 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 82 | 4,849 | 567 | 9,381 |
CSS | 16 | 262 | 80 | 7,723 |
JavaScript | 11 | 534 | 118 | 1,301 |
PO File | 1 | 204 | 313 | 421 |
SVG | 2 | 0 | 0 | 252 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 8.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 2 | 7.14% |
▷ Concrete classes | 26 | 92.86% |
▷ Final classes | 0 | 0.00% |
Methods | 412 | |
▷ Static methods | 50 | 12.14% |
▷ Public methods | 397 | 96.36% |
▷ Protected methods | 2 | 0.49% |
▷ Private methods | 13 | 3.16% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 81 | |
▷ Global constants | 2 | 2.47% |
▷ Class constants | 79 | 97.53% |
▷ Public constants | 79 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
31 PNG files occupy 0.33MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/prev.png | 0.58KB | 0.20KB | ▼ 65.37% |
images/buddypress.png | 1.90KB | 1.62KB | ▼ 14.68% |
images/acces.png | 0.81KB | 0.98KB | 0.00% |
images/multiple.png | 2.71KB | 1.38KB | ▼ 49.03% |
images/profil.png | 4.68KB | 3.24KB | ▼ 30.83% |