90% actify

Code Review | Actify

WordPress plugin Actify scored 90% 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: 5.9.2
  • 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 / 462 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.20MB] [CPU: ▼297.73ms] Passed 4 tests

A check of server-side resources used by Actify
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.2863.29 ▲3.76
Dashboard /wp-admin3.63 ▲0.2337.46 ▲0.51
Posts /wp-admin/edit.php3.86 ▲0.2243.33 ▲1.46
Add New Post /wp-admin/post-new.php7.09 ▲0.12101.37 ▼1,196.64
Media Library /wp-admin/upload.php3.52 ▲0.2230.81 ▲4.68
Add New /wp-admin/post-new.php?post_type=actify_reports3.8447.58
Add New /wp-admin/post-new.php?post_type=actify_highlights3.8445.17
Highlights /wp-admin/edit.php?post_type=actify_highlights3.6133.72
Actify Settings /wp-admin/options-general.php?page=actify-settings-page3.4927.82
Add New /wp-admin/post-new.php?post_type=actify_typos3.8445.44
Reports /wp-admin/edit.php?post_type=actify_reports3.6128.20
Mistakes /wp-admin/edit.php?post_type=actify_typos3.6126.51

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 1 new option
New WordPress options
widget_actify_highlights_widget

Browser metrics Passed 4 tests

A check of browser resources used by Actify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,943 ▲19916.20 ▼0.126.40 ▼0.912.67 ▲0.42
Dashboard /wp-admin3,026 ▲1396.43 ▼0.13135.58 ▼7.93154.96 ▼15.13
Posts /wp-admin/edit.php2,802 ▲1173.45 ▲0.0262.38 ▼0.84147.64 ▲2.41
Add New Post /wp-admin/post-new.php1,783 ▲12321.44 ▲4.87431.50 ▲4.05159.15 ▲3.92
Media Library /wp-admin/upload.php1,807 ▲1095.74 ▲0.02160.93 ▲17.83200.27 ▲11.92
Add New /wp-admin/post-new.php?post_type=actify_reports2,88810.10194.52202.84
Add New /wp-admin/post-new.php?post_type=actify_highlights2,95810.14192.28191.03
Highlights /wp-admin/edit.php?post_type=actify_highlights1,4723.3660.53119.39
Actify Settings /wp-admin/options-general.php?page=actify-settings-page1,5673.4674.02105.55
Add New /wp-admin/post-new.php?post_type=actify_typos2,89310.11188.49195.20
Reports /wp-admin/edit.php?post_type=actify_reports1,4743.3660.24117.36
Mistakes /wp-admin/edit.php?post_type=actify_typos1,4723.1260.38119.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options were found after uninstall: 1 option
    • widget_actify_highlights_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Tooltip in the content.), #2 (Actify Highlights Widget.), #3 (Settings page.)
Please take inspiration from this readme.txt

actify/actify.php Passed 13 tests

This is the main PHP file of "Actify" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin12,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 short overview of logical lines of code, cyclomatic complexity, and other code metrics
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin