84% bea-activator

Code Review | BEA - Activator

WordPress plugin BEA - Activator scored 84% from 54 tests.

About plugin

  • Plugin page: bea-activator
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Jan 22, 2017
  • Latest release: May 4, 2019
  • Number of updates: 9
  • Update frequency: every 92.3 days
  • Top authors: MaximeCulea (55.56%)beapi (33.33%)jmlapam (33.33%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,263 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.72ms] Passed 4 tests

This is a short check of server-side resources used by BEA - Activator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.36 ▼5.53
Dashboard /wp-admin3.33 ▲0.0249.33 ▲0.19
Posts /wp-admin/edit.php3.38 ▲0.0248.39 ▼2.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.43 ▼2.83
Media Library /wp-admin/upload.php3.25 ▲0.0233.85 ▼0.46

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for BEA - Activator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.75 ▲0.151.88 ▼0.2143.01 ▼9.86
Dashboard /wp-admin2,209 ▲214.85 ▼0.04103.11 ▼3.3438.68 ▼4.18
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0539.32 ▲0.7636.61 ▲2.49
Add New Post /wp-admin/post-new.php1,514 ▼517.41 ▼5.86676.35 ▲18.6656.64 ▲0.55
Media Library /wp-admin/upload.php1,391 ▲34.18 ▼0.0398.21 ▼13.9742.75 ▼0.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/bea-activator/bea-activator.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: plugin, activate, deactivate, activation-hook, reactivate...

bea-activator/bea-activator.php Passed 13 tests

This is the main PHP file of "BEA - Activator" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
41 characters long description:
Quickly deactivate & reactivate a plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin107 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1325685
PO File12222

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods666.67%
▷ Protected methods333.33%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin