Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.58MB] [CPU: ▼14.68ms] Passed 4 tests
Analyzing server-side resources used by Janey AI
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 37.86 ▼3.60 |
Dashboard /wp-admin | 3.43 ▲0.12 | 48.42 ▼1.21 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.25 ▲2.59 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.67 | 38.79 ▼56.51 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.60 ▲2.90 |
Janey AI /wp-admin/tools.php?page=janey-ai | 3.61 | 36.83 |
Server storage [IO: ▲3.76MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2,000 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Janey AI
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,863 ▲128 | 14.46 ▲0.08 | 1.98 ▲0.04 | 45.67 ▼1.58 |
Dashboard /wp-admin | 2,236 ▲48 | 5.85 ▼0.04 | 118.91 ▲9.87 | 38.79 ▼5.63 |
Posts /wp-admin/edit.php | 2,130 ▲44 | 2.59 ▲0.56 | 40.67 ▲6.01 | 31.59 ▼2.94 |
Add New Post /wp-admin/post-new.php | 6,613 ▲5,094 | 23.18 ▲0.11 | 881.95 ▲221.34 | 51.93 ▼5.30 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.98 ▲0.66 | 93.84 ▼4.38 | 40.39 ▼1.53 |
Janey AI /wp-admin/tools.php?page=janey-ai | 933 | 2.26 | 28.29 | 26.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
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
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 510× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Conditional' not found in wp-content/plugins/janey-ai/includes/twig/vendor/twig/twig/lib/Twig/Node/Expression/NullCoalesce.php:11
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/janey-ai/trunk/includes/twig/vendor/twig/twig/lib/Twig/TokenParser/Do.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/janey-ai/includes/twig/vendor/twig/twig/test/Twig/Tests/ContainerRuntimeLoaderTest.php:14
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Name' not found in wp-content/plugins/janey-ai/includes/twig/vendor/twig/twig/lib/Twig/Node/Expression/AssignName.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\UriInterface' not found in wp-content/plugins/janey-ai/includes/janey-sdk/vendor/guzzlehttp/psr7/src/Uri.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Twig_RuntimeLoaderInterface' not found in wp-content/plugins/janey-ai/includes/twig/vendor/twig/twig/lib/Twig/FactoryRuntimeLoader.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/janey-ai/includes/twig/vendor/twig/twig/lib/Twig/Node/Do.php:17
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/janey-ai/includes/twig/vendor/twig/twig/lib/Twig/Extension/Escaper.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Extension' not found in wp-content/plugins/janey-ai/includes/twig/vendor/twig/twig/lib/Twig/Extension/StringLoader.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Test_NodeTestCase' not found in wp-content/plugins/janey-ai/includes/twig/vendor/twig/twig/test/Twig/Tests/Node/Expression/NullCoalesceTest.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: images, taxonomy, tags, terms, photos...
janey-ai/janey-ai.php 92% from 13 tests
The entry point to "Janey AI" version 0.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Git Repository: There should be no Git repositories present in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected35,114 lines of code in 695 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 542 | 5,847 | 11,123 | 27,995 |
Markdown | 13 | 1,003 | 0 | 3,211 |
reStructuredText | 89 | 1,977 | 1,807 | 2,627 |
JSON | 13 | 0 | 0 | 859 |
HTML | 24 | 2 | 0 | 300 |
XML | 2 | 8 | 0 | 47 |
YAML | 2 | 10 | 1 | 33 |
JavaScript | 1 | 0 | 0 | 19 |
Twig | 8 | 6 | 0 | 14 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 33 | |
Interfaces | 82 | |
Traits | 4 | |
Classes | 1,018 | |
▷ Abstract classes | 26 | 2.55% |
▷ Concrete classes | 992 | 97.45% |
▷ Final classes | 122 | 12.30% |
Methods | 3,980 | |
▷ Static methods | 266 | 6.68% |
▷ Public methods | 3,418 | 85.88% |
▷ Protected methods | 164 | 4.12% |
▷ Private methods | 398 | 10.00% |
Functions | 516 | |
▷ Named functions | 316 | 61.24% |
▷ Anonymous functions | 200 | 38.76% |
Constants | 208 | |
▷ Global constants | 8 | 3.85% |
▷ Class constants | 200 | 96.15% |
▷ Public constants | 200 | 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 images were found in this plugin