84% alter

Code Review | Alter

WordPress plugin Alter scored84%from 54 tests.

About plugin

  • Plugin page: alter
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-5.2
  • WordPress version: 6.3.1
  • First release: Nov 5, 2019
  • Latest release: Nov 14, 2019
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: altersoftware (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /2,025 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Alter
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.08 ▼3.81
Dashboard /wp-admin3.32 ▲0.0143.66 ▼3.41
Posts /wp-admin/edit.php3.37 ▲0.0148.91 ▼3.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.80 ▼27.28
Media Library /wp-admin/upload.php3.25 ▲0.0136.18 ▲1.71
Alter Configuration /wp-admin/plugins.php?page=alter-config3.2129.92

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Alter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.17 ▼1.445.03 ▲3.2840.46 ▼9.24
Dashboard /wp-admin2,210 ▲255.86 ▲0.93112.59 ▲7.2743.45 ▲0.09
Posts /wp-admin/edit.php2,096 ▲72.01 ▼0.0240.31 ▼3.7836.41 ▼1.28
Add New Post /wp-admin/post-new.php1,534 ▲1223.01 ▼0.08653.83 ▼2.1049.11 ▼4.73
Media Library /wp-admin/upload.php1,392 ▲74.22 ▲0.0497.05 ▼5.7441.23 ▼4.50
Alter Configuration /wp-admin/plugins.php?page=alter-config7892.0526.6729.27

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alter/alter.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
Attributes that require attention:
  • Tags: There are too many tags (22 tag instead of maximum 10)
Please take inspiration from this readme.txt

alter/alter.php Passed 13 tests

Analyzing the main PHP file in "Alter" version 1.0
116 characters long description:
Automatically increase visitor engagement and pageviews with AI-powered content recommendations. No humans required.

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
Success! There were no dangerous files found in this plugin55 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2151055

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.63
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%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin