84% wp-pause-ads

Code Review | wp Pause Ads

WordPress plugin wp Pause Ads scored 84% from 54 tests.

About plugin

  • Plugin page: wp-pause-ads
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 18, 2013
  • Latest release: Apr 1, 2013
  • Number of updates: 4
  • Update frequency: every 10.7 days
  • Top authors: dsampaolo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 712 total downloads

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.04MB] [CPU: ▼3.53ms] Passed 4 tests

Analyzing server-side resources used by wp Pause Ads
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.24 ▲0.22
Dashboard /wp-admin3.34 ▲0.0446.58 ▼3.80
Posts /wp-admin/edit.php3.39 ▲0.0342.84 ▼4.84
Add New Post /wp-admin/post-new.php5.92 ▲0.0493.90 ▼0.92
Media Library /wp-admin/upload.php3.26 ▲0.0333.66 ▼4.54
Format /wp-admin/edit-tags.php?taxonomy=format&post_type=wp_pause_ad3.2632.61
Libellé /wp-admin/edit-tags.php?taxonomy=label&post_type=wp_pause_ad3.2634.21
Wp Pause Ads /wp-admin/edit.php?post_type=wp_pause_ad3.3137.44
Add New /wp-admin/post-new.php?post_type=wp_pause_ad3.3845.57

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by wp Pause Ads
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲8113.61 ▼0.761.75 ▼0.3343.73 ▼4.86
Dashboard /wp-admin2,244 ▲565.85 ▼0.0599.38 ▼9.9239.50 ▼2.25
Posts /wp-admin/edit.php2,124 ▲352.06 ▲0.0637.90 ▲0.6535.93 ▲2.80
Add New Post /wp-admin/post-new.php1,543 ▲217.67 ▼0.53622.63 ▼62.2643.11 ▼12.57
Media Library /wp-admin/upload.php1,417 ▲324.20 ▼0.0293.28 ▼23.5843.63 ▼5.38
Format /wp-admin/edit-tags.php?taxonomy=format&post_type=wp_pause_ad1,2692.1325.7528.92
Libellé /wp-admin/edit-tags.php?taxonomy=label&post_type=wp_pause_ad1,2692.1426.0927.46
Wp Pause Ads /wp-admin/edit.php?post_type=wp_pause_ad1,0881.9330.4728.78
Add New /wp-admin/post-new.php?post_type=wp_pause_ad2,3247.79186.7862.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • 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 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-pause-ads/wp-pause-ads.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: snippets, ads, adserver

wp-pause-ads/wp-pause-ads.php Passed 13 tests

"wp Pause Ads" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
79 characters long description:
met à disposition un shortcode permettant d'inclure des publicités "ciblées"

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
Good job! No executable or dangerous file extensions detected106 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12112106

PHP code Passed 2 tests

An overview 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 code0.38
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected