78% arm4slide

Code Review | arm4slide

WordPress plugin arm4slide scored 78% from 54 tests.

About plugin

  • Plugin page: arm4slide
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 14, 2013
  • Latest release: Apr 14, 2013
  • Number of updates: 11
  • Update frequency: N/A
  • Top authors: arm4design (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 997 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.11MB] [CPU: ▼16.02ms] Passed 4 tests

Analyzing server-side resources used by arm4slide
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.05 ▼4.57
Dashboard /wp-admin3.25 ▼0.0529.35 ▼19.90
Posts /wp-admin/edit.php3.32 ▼0.0337.06 ▼17.78
Add New Post /wp-admin/post-new.php5.50 ▼0.3867.26 ▼21.83
Media Library /wp-admin/upload.php3.26 ▲0.0329.34 ▲0.03
Slider /wp-admin/themes.php?page=arm4slide3.2326.31

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
arm4slide
category_children
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for arm4slide
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,087 ▲35216.50 ▲2.2114.64 ▲12.8441.57 ▼5.82
Dashboard /wp-admin2,316 ▲1285.85 ▲1.00135.84 ▲21.9738.51 ▼9.62
Posts /wp-admin/edit.php2,197 ▲1053.37 ▲1.3748.20 ▲3.8450.72 ▲7.53
Add New Post /wp-admin/post-new.php1,374 ▼14014.70 ▼2.86496.06 ▼167.1617.07 ▼39.56
Media Library /wp-admin/upload.php1,515 ▲1245.07 ▲0.85123.13 ▲22.2450.04 ▲7.77
Slider /wp-admin/themes.php?page=arm4slide4,8844.88124.9837.98

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • arm4slide
    • widget_recent-comments
    • category_children
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=arm4slide
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arm4slide/trunk/class-arm4plugins.php:131
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/arm4slide/class-arm4plugins.php:131

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === arm4slide === )
You can take inspiration from this readme.txt

arm4slide/arm4slide.php Passed 13 tests

The primary PHP file in "arm4slide" version 1.0 is used by WordPress to initiate all plugin functionality
51 characters long description:
A complete javascript slider plugin using mooTools.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected6,964 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,5791,0005,364
PHP3621701,505
CSS14595

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity54.00
▷ Minimum class complexity54.00
▷ Maximum class complexity54.00
Average method complexity3.41
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods44
▷ Static methods00.00%
▷ Public methods44100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
18 compressed PNG files occupy 0.66MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
trunk/images/admin/toolicon32.png1.29KB1.19KB▼ 7.67%
images/admin/toolicon32.png1.29KB1.19KB▼ 7.67%
images/control_circles.png0.34KB0.27KB▼ 20.35%
images/admin/ball.png0.81KB1.03KB0.00%
trunk/images/control_squares.png0.23KB0.20KB▼ 13.92%