Benchmarks
Plugin footprint 65% 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.18MB] [CPU: ▼4.26ms] Passed 4 tests
An overview of server-side resources used by Content Relations
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 45.92 ▲8.25 |
Dashboard /wp-admin | 3.48 ▲0.18 | 44.12 ▼6.43 |
Posts /wp-admin/edit.php | 3.59 ▲0.24 | 44.86 ▼1.22 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 86.43 ▼12.80 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.36 ▲3.42 |
Content Relations /wp-admin/tools.php?page=settings-content-realations | 3.36 | 32.03 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 19 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_content_relations_types |
wp_content_relations |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Content Relations
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.18 ▼1.42 | 1.58 ▼0.41 | 39.72 ▼4.52 |
Dashboard /wp-admin | 2,210 ▲18 | 5.84 ▲0.89 | 102.87 ▼13.70 | 37.62 ▼8.83 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.01 | 37.48 ▼0.05 | 32.49 ▼5.12 |
Add New Post /wp-admin/post-new.php | 6,292 ▲4,753 | 19.00 ▼4.18 | 892.36 ▲231.71 | 57.80 ▼5.88 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.26 ▲0.07 | 107.45 ▲13.77 | 45.69 ▼2.54 |
Content Relations /wp-admin/tools.php?page=settings-content-realations | 758 | 2.06 | 33.84 | 24.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie tables detected upon uninstall: 2 tables
- wp_content_relations
- wp_content_relations_types
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-relations/migrate.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/content-relations/parts/content-relations-meta-box.tpl.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: metabox, post, relation
content-relations/ph-content-relations.php 92% from 13 tests
This is the main PHP file of "Content Relations" version 1.0.14, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("content-relations.php" instead of "ph-content-relations.php")
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
Good job! No executable or dangerous file extensions detected1,409 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 187 | 478 | 792 |
JavaScript | 1 | 41 | 79 | 433 |
CSS | 1 | 5 | 16 | 184 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 39 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 7.14% |
Functions | 24 | |
▷ Named functions | 22 | 91.67% |
▷ Anonymous functions | 2 | 8.33% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin