84% evolution-footer-scripts

Code Review | AH Footer Scripts

WordPress plugin AH Footer Scripts scored84%from 54 tests.

About plugin

  • Plugin page: evolution-footer-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Dec 1, 2013
  • Latest release: Sep 23, 2017
  • Number of updates: 17
  • Update frequency: every 81.9 days
  • Top authors: AHecht (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /2,705 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
Installer ran successfully

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

Analyzing server-side resources used by AH Footer Scripts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▼0.0035.49 ▼3.95
Dashboard /wp-admin3.31 ▼0.0444.70 ▼18.53
Posts /wp-admin/edit.php3.36 ▲0.0042.01 ▼3.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.91 ▼17.88
Media Library /wp-admin/upload.php3.23 ▲0.0035.74 ▲1.88

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for AH Footer Scripts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.73 ▲0.191.75 ▼0.1740.22 ▼1.89
Dashboard /wp-admin2,192 ▲155.50 ▼0.1587.14 ▼3.5936.50 ▼3.14
Posts /wp-admin/edit.php2,100 ▼01.96 ▼0.0337.14 ▼2.2231.43 ▼2.19
Add New Post /wp-admin/post-new.php1,539 ▲1323.16 ▼0.48612.64 ▼53.2569.14 ▼7.51
Media Library /wp-admin/upload.php1,403 ▼04.14 ▲0.0998.09 ▼11.9741.91 ▼9.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/evolution-footer-scripts/evolution-footer-scripts.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: jquery to footer, javascript, performance, javascript in footer, speed...

evolution-footer-scripts/evolution-footer-scripts.php 92% from 13 tests

The entry point to "AH Footer Scripts" version 1.0.2 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 242 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected9 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17249

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected