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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▼6.38ms] Passed 4 tests
Server-side resources used by RedPic ADS Manager Lite
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.34 | 41.62 ▼3.30 |
Dashboard /wp-admin | 3.63 ▲0.28 | 46.48 ▼8.13 |
Posts /wp-admin/edit.php | 3.68 ▲0.32 | 50.30 ▼2.12 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 82.04 ▼11.95 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 38.01 ▲6.47 |
Settings /wp-admin/admin.php?page=rpam-settings | 3.52 | 35.05 |
Codes /wp-admin/admin.php?page=rpam-codes | 3.62 | 39.28 |
Groups /wp-admin/admin.php?page=rpam-groups | 3.55 | 35.37 |
Dashboard /wp-admin/admin.php?page=rpam-dashboard | 3.49 | 33.30 |
Shortcodes /wp-admin/admin.php?page=rpam-shortcodes | 3.55 | 32.57 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 79 new files
Database: 4 new tables, 9 new options
New tables |
---|
wp_rpam_options |
wp_rpam_codes |
wp_rpam_groups |
wp_rpam_shortcodes |
New WordPress options |
---|
widget_recent-posts |
widget_rp_ads_w_place |
db_upgraded |
rpam_remote_token |
theysaidso_admin_options |
rpam_db_version |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
RedPic ADS Manager Lite: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲118 | 13.54 ▼0.84 | 1.90 ▼0.17 | 39.79 ▼12.39 |
Dashboard /wp-admin | 2,245 ▲90 | 4.85 ▼0.82 | 107.21 ▲0.13 | 39.95 ▲2.03 |
Posts /wp-admin/edit.php | 2,128 ▲36 | 2.12 ▲0.09 | 42.64 ▲0.93 | 35.26 ▼1.15 |
Add New Post /wp-admin/post-new.php | 1,573 ▲40 | 18.41 ▼4.88 | 595.04 ▼44.62 | 55.54 ▲5.16 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.27 ▲0.02 | 95.11 ▼2.94 | 43.60 ▲1.29 |
Settings /wp-admin/admin.php?page=rpam-settings | 1,162 | 3.93 | 68.25 | 54.85 |
Codes /wp-admin/admin.php?page=rpam-codes | 1,092 | 2.06 | 26.22 | 31.48 |
Groups /wp-admin/admin.php?page=rpam-groups | 929 | 2.03 | 24.69 | 26.60 |
Dashboard /wp-admin/admin.php?page=rpam-dashboard | 890 | 2.06 | 23.80 | 31.49 |
Shortcodes /wp-admin/admin.php?page=rpam-shortcodes | 926 | 2.06 | 24.78 | 27.04 |
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 detected upon uninstall: 8 options
- widget_rp_ads_w_place
- db_upgraded
- rpam_remote_token
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
- 49× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RP\\AdsManager\\Import\\Rule' not found in wp-content/plugins/rp-ads-manager/src/Import/Rules/QuickAdsense.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rp-ads-manager/templates/backend/codes/editor.php:2
- > PHP Fatal error
Uncaught Error: Class 'RP\\AdsManager\\Hooks\\Hook' not found in wp-content/plugins/rp-ads-manager/src/Hooks/Frontend/LoopEnd.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/rp-ads-manager/templates/comming_soon.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rp-ads-manager/templates/backend/shortcodes/editor.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'RP\\AdsManager\\Database\\Helper' not found in wp-content/plugins/rp-ads-manager/src/Helper/Shortcode.php:13
- > PHP Fatal error
Uncaught Error: Class 'RP\\AdsManager\\Util\\Singleton' not found in wp-content/plugins/rp-ads-manager/src/Helper/wpView.php:15
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/rp-ads-manager/templates/backend/groups/editor.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'RP\\AdsManager\\Hooks\\Hook' not found in wp-content/plugins/rp-ads-manager/src/Hooks/Backend/Settings.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/rp-ads-manager/templates/backend/codes/list.php:2
- > PHP Fatal error
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
rp-ads-manager/rp-ads-manager.php Passed 13 tests
Analyzing the main PHP file in "RedPic ADS Manager Lite" version 1.6.1
95 characters long description:
JS/HTML ads block manager. Allows you to create and insert blocks of code anywhere on the blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected7,200 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 67 | 809 | 520 | 3,327 |
JavaScript | 3 | 515 | 873 | 2,641 |
CSS | 4 | 45 | 49 | 1,232 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 6.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 6 | 11.32% |
▷ Concrete classes | 47 | 88.68% |
▷ Final classes | 15 | 31.91% |
Methods | 195 | |
▷ Static methods | 42 | 21.54% |
▷ Public methods | 155 | 79.49% |
▷ Protected methods | 8 | 4.10% |
▷ Private methods | 32 | 16.41% |
Functions | 8 | |
▷ Named functions | 2 | 25.00% |
▷ Anonymous functions | 6 | 75.00% |
Constants | 49 | |
▷ Global constants | 3 | 6.12% |
▷ Class constants | 46 | 93.88% |
▷ Public constants | 46 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin