78% wp-adnimation

Code Review | Adnimation

WordPress plugin Adnimation scored78%from 54 tests.

About plugin

  • Plugin page: wp-adnimation
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 23, 2014
  • Latest release: Feb 26, 2014
  • Number of updates: 8
  • Update frequency: every 0.6 days
  • Top authors: Adnimation (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /771 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼9.83ms] Passed 4 tests

Analyzing server-side resources used by Adnimation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0830.06 ▼14.12
Dashboard /wp-admin3.32 ▲0.0147.02 ▼3.00
Posts /wp-admin/edit.php3.37 ▲0.0146.80 ▼3.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.10 ▼19.09
Media Library /wp-admin/upload.php3.24 ▲0.0139.98 ▲2.81
Adnimation /wp-admin/options-general.php?page=apo_adnimation_options3.1831.31

Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] 67% from 3 tests

How much does this plugin use your filesystem and database?
Just a few items left to fix
  • Illegal file modification found: 2 files (0.00KB) outside of "wp-content/plugins/wp-adnimation/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/wp-adnimation/assets/banner-772\303\227250.jpg"
    • (new file) "wp-content/plugins/wp-adnimation/assets/banner-1544\303\227500.jpg"
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Adnimation
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.35 ▼0.031.99 ▲0.0243.91 ▲1.16
Dashboard /wp-admin2,204 ▲245.62 ▲0.0088.83 ▼3.3045.66 ▲9.28
Posts /wp-admin/edit.php2,106 ▲92.03 ▲0.0440.47 ▲4.0938.92 ▲2.15
Add New Post /wp-admin/post-new.php1,533 ▼423.08 ▲5.00687.94 ▲52.9063.32 ▼3.05
Media Library /wp-admin/upload.php1,409 ▲154.25 ▲0.03101.54 ▲1.4141.49 ▼5.81
Adnimation /wp-admin/options-general.php?page=apo_adnimation_options8292.0525.3928.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=apo_adnimation_options
    • > Notice in wp-content/plugins/wp-adnimation/wp-adnimation.php+142
    Trying to access array offset on value of type bool

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 fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-adnimation/wp-adnimation.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (This is the simple wp-adnimation plugin settings area.), #2 (This is an example of an Adnimation ad.)
You can look at the official readme.txt

wp-adnimation/wp-adnimation.php Passed 13 tests

The principal PHP file in "Adnimation" v. 1.0 is loaded by WordPress automatically on each request
83 characters long description:
This plugin inserts the Adnimation code into your website for placing animated ads.

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
No dangerous file extensions were detected122 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12450113
CSS1009

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.34MB with 0.23MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png229.15KB63.88KB▼ 72.12%
assets/screenshot-2.png114.34KB36.88KB▼ 67.74%