83% adjustly-collapse

Code Review | Adjustly Collapse

WordPress plugin Adjustly Collapse scored 83% from 54 tests.

About plugin

  • Plugin page: adjustly-collapse
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 21, 2012
  • Latest release: Feb 27, 2012
  • Number of updates: 12
  • Update frequency: every 0.6 days
  • Top authors: PSDCovers (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

200+ active / 7,190 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
Install script ran successfully

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

A check of server-side resources used by Adjustly Collapse
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.12 ▲0.17
Dashboard /wp-admin3.31 ▲0.0148.43 ▼4.48
Posts /wp-admin/edit.php3.36 ▲0.0145.70 ▼4.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0388.92 ▼1.24
Media Library /wp-admin/upload.php3.23 ▲0.0139.52 ▲4.98

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Adjustly Collapse
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,912 ▲15513.94 ▼0.358.46 ▲6.2942.83 ▼0.67
Dashboard /wp-admin2,208 ▲206.03 ▲0.12103.83 ▼6.0639.68 ▼8.92
Posts /wp-admin/edit.php2,091 ▲22.02 ▲0.0034.82 ▼1.1231.65 ▼3.06
Add New Post /wp-admin/post-new.php1,549 ▲3018.08 ▼5.23615.30 ▼94.2363.28 ▲8.00
Media Library /wp-admin/upload.php1,390 ▲24.21 ▲0.0597.97 ▼5.9642.39 ▼3.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/adjustly-collapse/aj-collapse.php:16

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Requires at least: The plugin version is formatted incorrectly
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === adjustly-collapse === )
Please take inspiration from this readme.txt

adjustly-collapse/aj-collapse.php 92% from 13 tests

"Adjustly Collapse" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("adjustly-collapse.php" instead of "aj-collapse.php")

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 plugin31 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP171119
JavaScript11129
CSS1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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