90% actify

Code Review | Actify

WordPress plugin Actify scored90%from 54 tests.

About plugin

  • Plugin page: actify
  • Plugin version: 1.0
  • PHP compatiblity: 5.3.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 6.3.1
  • First release: Aug 22, 2018
  • Latest release: Aug 23, 2018
  • Number of updates: 2
  • Update frequency: every 19.5 days
  • Top authors: wpsetter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /682 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼9.04ms] Passed 4 tests

A check of server-side resources used by Actify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1044.50 ▲1.67
Dashboard /wp-admin3.39 ▲0.0450.26 ▼16.14
Posts /wp-admin/edit.php3.44 ▲0.0847.52 ▼1.28
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.28 ▼14.96
Media Library /wp-admin/upload.php3.31 ▲0.0834.35 ▼3.77
Add New /wp-admin/post-new.php?post_type=actify_reports3.4249.81
Add New /wp-admin/post-new.php?post_type=actify_typos3.4243.91
Mistakes /wp-admin/edit.php?post_type=actify_typos3.3536.49
Add New /wp-admin/post-new.php?post_type=actify_highlights3.4249.46
Actify Settings /wp-admin/options-general.php?page=actify-settings-page3.2836.35
Highlights /wp-admin/edit.php?post_type=actify_highlights3.3541.52
Reports /wp-admin/edit.php?post_type=actify_reports3.3538.48

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_actify_highlights_widget
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Actify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲14813.27 ▼1.115.22 ▲3.3944.19 ▲1.02
Dashboard /wp-admin2,306 ▲1035.80 ▼0.1196.01 ▼14.1740.05 ▼5.47
Posts /wp-admin/edit.php2,185 ▲822.02 ▼0.0035.78 ▼2.7435.67 ▲0.42
Add New Post /wp-admin/post-new.php1,603 ▲5823.32 ▲0.24647.11 ▼42.9865.61 ▼0.73
Media Library /wp-admin/upload.php1,488 ▲884.25 ▼0.0397.51 ▼20.1644.13 ▼6.34
Add New /wp-admin/post-new.php?post_type=actify_reports2,2447.55176.1263.89
Add New /wp-admin/post-new.php?post_type=actify_typos2,2447.53180.9160.57
Mistakes /wp-admin/edit.php?post_type=actify_typos1,1491.9931.7933.27
Add New /wp-admin/post-new.php?post_type=actify_highlights2,2827.60161.2756.57
Actify Settings /wp-admin/options-general.php?page=actify-settings-page1,2362.6144.0127.06
Highlights /wp-admin/edit.php?post_type=actify_highlights1,1492.0035.4828.19
Reports /wp-admin/edit.php?post_type=actify_reports1,1492.0031.7132.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_actify_highlights_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

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
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (Tooltip in the content.), #2 (Actify Highlights Widget.), #3 (Settings page.)
You can look at the official readme.txt

actify/actify.php Passed 13 tests

"Actify" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
108 characters long description:
Actify is a Wordpress plugin that increases the interaction of the readers of your website with the content.

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
Good job! No executable or dangerous file extensions detected12,693 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51,0751,2958,645
SVG1002,671
PHP3208207917
CSS35116246
PO File16674172
Markdown121042

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity22.50
▷ Minimum class complexity16.00
▷ Maximum class complexity29.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin