78% appad-manager

Code Review | AppAd Manager

WordPress plugin AppAd Manager scored78%from 54 tests.

About plugin

  • Plugin page: appad-manager
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.3.1
  • WordPress version: 6.3.1
  • First release: Mar 9, 2012
  • Latest release: Nov 25, 2015
  • Number of updates: 4
  • Update frequency: every 339.0 days
  • Top authors: meloniq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /6,837 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.33ms] Passed 4 tests

Analyzing server-side resources used by AppAd Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.85 ▼1.81
Dashboard /wp-admin3.36 ▲0.0150.12 ▼3.99
Posts /wp-admin/edit.php3.41 ▲0.0547.92 ▲1.36
Add New Post /wp-admin/post-new.php5.94 ▲0.0595.11 ▼0.86
Media Library /wp-admin/upload.php3.28 ▲0.0537.85 ▲3.17

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 24 new files
Database: no new tables, 11 new options
New WordPress options
theysaidso_admin_options
appad_va_active
appad_cp_active
widget_recent-posts
db_upgraded
appad_db_version
appad_jr_active
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for AppAd Manager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.35 ▼1.081.80 ▼0.0639.51 ▼5.44
Dashboard /wp-admin2,247 ▲565.86 ▲0.97100.24 ▼1.8285.94 ▲46.84
Posts /wp-admin/edit.php2,127 ▲382.03 ▼0.0239.21 ▲2.1236.39 ▲3.28
Add New Post /wp-admin/post-new.php1,556 ▲2323.19 ▼0.08725.26 ▲38.2755.20 ▲1.02
Media Library /wp-admin/upload.php1,423 ▲354.26 ▲0.02112.32 ▲0.7676.55 ▲32.16
Clipper /wp-admin/appad-manager.php?page=appad-clipper260.440.0914.98
JobRoller /wp-admin/appad-manager.php?page=appad-jobroller260.440.096.33
Vantage /wp-admin/appad-manager.php?page=appad-vantage260.440.185.17
Dashboard /wp-admin/appad-manager.php260.440.066.52
ClassiPress /wp-admin/appad-manager.php?page=appad-classipress260.440.085.63

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 11 options in the database
    • appad_jr_active
    • theysaidso_admin_options
    • can_compress_scripts
    • appad_va_active
    • appad_cp_active
    • widget_recent-posts
    • widget_recent-comments
    • appad_db_version
    • widget_theysaidso_widget
    • appad_clpr_active
    • ...

Smoke tests 50% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/appad-manager/appad-welcome.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/appad-manager/appad-manager.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/appad-manager/clipper/clipper-hooks.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/appad-manager/classipress/classipress-admin.php:113
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/appad-manager/jobroller/jobroller-hooks.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/appad-manager/jobroller/jobroller-admin.php:113
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/appad-manager/vantage/vantage-admin.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function update_option() in wp-content/plugins/appad-manager/clipper/clipper-admin.php:113
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/appad-manager/vantage/vantage-hooks.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/appad-manager/classipress/classipress-hooks.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/appad-manager.php?page=appad-clipper
    • > Network (severe)
    wp-admin/appad-manager.php?page=appad-clipper - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/appad-manager.php?page=appad-jobroller
    • > Network (severe)
    wp-admin/appad-manager.php?page=appad-jobroller - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/appad-manager.php?page=appad-vantage
    • > Network (severe)
    wp-admin/appad-manager.php?page=appad-vantage - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/appad-manager.php
    • > Network (severe)
    wp-admin/appad-manager.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/appad-manager.php?page=appad-classipress
    • > Network (severe)
    wp-admin/appad-manager.php?page=appad-classipress - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Tags: There are too many tags (15 tag instead of maximum 10)
You can take inspiration from this readme.txt

appad-manager/appad-manager.php Passed 13 tests

The main PHP file in "AppAd Manager" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
Displays google adsense (or other ads) between posts in AppThemes Premium Themes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin844 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP10148192654
PO File13655112
CSS27478

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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
8 PNG files occupy 0.19MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
clipper/clpr-between-bg.png19.67KB8.84KB▼ 55.03%
jobroller/jr-between-bg.png2.76KB1.74KB▼ 36.95%
jobroller/screenshot.png9.98KB9.60KB▼ 3.76%
classipress/cp-between-bg.png13.01KB8.14KB▼ 37.41%
classipress/screenshot.png73.48KB34.14KB▼ 53.54%