Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.81ms] Passed 4 tests
This is a short check of server-side resources used by APOC
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.49 ▼7.36 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.73 ▼2.62 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 45.93 ▼10.47 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.50 ▼14.80 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.89 ▼0.09 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for APOC
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,006 ▲271 | 13.56 ▼1.05 | 5.73 ▲4.12 | 39.32 ▼10.75 |
Dashboard /wp-admin | 2,306 ▲118 | 4.93 ▲0.01 | 97.73 ▼22.96 | 75.44 ▲29.64 |
Posts /wp-admin/edit.php | 2,186 ▲94 | 2.01 ▼0.05 | 33.19 ▼11.61 | 30.60 ▼18.90 |
Add New Post /wp-admin/post-new.php | 6,366 ▲4,824 | 28.14 ▲9.95 | 900.84 ▲299.27 | 40.45 ▼18.93 |
Media Library /wp-admin/upload.php | 1,482 ▲97 | 4.20 ▼0.06 | 100.85 ▲3.26 | 75.73 ▲34.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant APOC_POST_TYPE - assumed 'APOC_POST_TYPE' (this will throw an Error in a future version of PHP) in wp-content/plugins/apoc-viewer/php/welcome.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/apoc-viewer/php/welcome.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apoc-viewer/php/index.php:5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% 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
5 plugin tags: apoc, interactive content, authoring platform, authoring tool, xr content
apoc-viewer/apoc.php 77% from 13 tests
The principal PHP file in "APOC" v. 1.3.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("apoc-viewer.php" instead of "apoc.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 208 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected3,351 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 0 | 2,716 |
CSS | 3 | 52 | 9 | 338 |
PHP | 8 | 71 | 318 | 229 |
JavaScript | 2 | 12 | 21 | 68 |
PHP code Passed 2 tests
Analyzing 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.17 |
Average class complexity | 2.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 10 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 23.08% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected