Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.55ms] Passed 4 tests
Analyzing server-side resources used by foodfindout
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.91 ▼5.94 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.85 ▼8.06 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.96 ▲1.91 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.93 ▼17.90 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.84 ▲1.71 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 183 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
foodfindout: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.70 ▲0.40 | 1.62 ▼0.21 | 38.87 ▼9.25 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▼0.03 | 89.93 ▲2.83 | 38.58 ▲1.42 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.97 ▲0.01 | 38.70 ▼2.07 | 34.84 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.21 ▲0.22 | 658.61 ▲77.51 | 57.60 ▲5.53 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.28 ▲0.11 | 95.56 ▼1.61 | 40.66 ▼3.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 144× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/foodfindout/Twig-1.18.0/lib/Twig/Node/Expression/Binary/Add.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Twig_ExtensionInterface' not found in wp-content/plugins/foodfindout/Twig-1.18.0/lib/Twig/Extension.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Sandbox_SecurityError' not found in wp-content/plugins/foodfindout/Twig-1.18.0/lib/Twig/Sandbox/SecurityNotAllowedTagError.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Twig_Sandbox_SecurityPolicyInterface' not found in wp-content/plugins/foodfindout/Twig-1.18.0/lib/Twig/Sandbox/SecurityPolicy.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Function' not found in wp-content/plugins/foodfindout/Twig-1.18.0/lib/Twig/Function/Node.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/foodfindout/Twig-1.18.0/lib/Twig/Test/NodeTestCase.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Twig_LoaderInterface' not found in wp-content/plugins/foodfindout/Twig-1.18.0/lib/Twig/Loader/Chain.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/foodfindout/Twig-1.18.0/lib/Twig/Node/Expression/Test/Even.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/foodfindout/Twig-1.18.0/lib/Twig/Node/Expression/Binary/FloorDiv.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/foodfindout/Twig-1.18.0/lib/Twig/Node/Expression/Binary.php:12
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Contributors: Plugin contributors field is missing
foodfindout/foodfindout.php Passed 13 tests
Analyzing the main PHP file in "foodfindout" version 1.0.1
44 characters long description:
gets restaurant info from foodfindout server
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected8,499 lines of code in 180 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 178 | 1,859 | 4,918 | 8,325 |
HTML | 1 | 30 | 0 | 165 |
reStructuredText | 1 | 5 | 1 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 6.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 117.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 19 | |
Traits | 0 | |
Classes | 158 | |
▷ Abstract classes | 12 | 7.59% |
▷ Concrete classes | 146 | 92.41% |
▷ Final classes | 0 | 0.00% |
Methods | 750 | |
▷ Static methods | 6 | 0.80% |
▷ Public methods | 656 | 87.47% |
▷ Protected methods | 90 | 12.00% |
▷ Private methods | 4 | 0.53% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 41 | |
▷ Global constants | 1 | 2.44% |
▷ Class constants | 40 | 97.56% |
▷ Public constants | 40 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected