Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.75ms] Passed 4 tests
An overview of server-side resources used by CATS Job Listings
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.23 ▼1.99 |
Dashboard /wp-admin | 3.35 ▲0.00 | 48.35 ▼10.71 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 45.04 ▼7.64 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.53 ▼2.64 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.85 ▼0.69 |
CATS Job Listings /wp-admin/options-general.php?page=cats-job-listings | 3.24 | 29.41 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
cats-version |
cats-options |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for CATS Job Listings
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.34 ▼0.38 | 1.59 ▼0.04 | 38.64 ▼9.14 |
Dashboard /wp-admin | 2,196 ▲28 | 5.51 ▼0.14 | 83.47 ▼3.76 | 35.96 ▼8.85 |
Posts /wp-admin/edit.php | 2,104 ▲25 | 2.02 ▲0.05 | 38.43 ▲2.27 | 32.66 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.33 ▲0.15 | 578.94 ▼44.78 | 68.42 ▼0.21 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.18 ▲0.08 | 101.89 ▼5.38 | 40.78 ▼4.21 |
CATS Job Listings /wp-admin/options-general.php?page=cats-job-listings | 865 | 1.99 | 22.45 | 40.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- cats-version
- db_upgraded
- cats-options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/cats-job-listings/CATSJobListing.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (13 tag instead of maximum 10)
cats-job-listings/CATSJobListing.php 92% from 13 tests
Analyzing the main PHP file in "CATS Job Listings" version 2.0.6
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cats-job-listings.php" instead of "CATSJobListing.php")
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 plugin220 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 35 | 13 | 220 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 16.67% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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