94% magnapass

Code Review | MagnaPass

WordPress plugin MagnaPass scored 94% from 54 tests.

About plugin

  • Plugin page: magnapass
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.2
  • WordPress version: 5.8.1
  • First release: Aug 26, 2018
  • Latest release: Aug 26, 2018
  • Number of updates: 4
  • Update frequency: every 1.8 days
  • Top authors: magnapass (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 273 total downloads

Benchmarks

Plugin footprint Passed 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: ▼141.62ms] Passed 4 tests

An overview of server-side resources used by MagnaPass
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1233.27 ▲11.25
Dashboard /wp-admin3.07 ▲0.0145.92 ▲2.23
Posts /wp-admin/edit.php3.12 ▲0.0146.76 ▲3.00
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.81 ▼568.44
Media Library /wp-admin/upload.php3.01 ▲0.0131.96 ▼3.28

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for MagnaPass
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.76 ▼0.109.24 ▼0.5145.85 ▼5.43
Dashboard /wp-admin2,967 ▲366.01 ▼0.09133.43 ▼14.07114.37 ▲3.11
Posts /wp-admin/edit.php2,736 ▼02.70 ▲0.0080.25 ▲13.8092.15 ▼0.59
Add New Post /wp-admin/post-new.php1,672 ▲6818.97 ▲0.40378.15 ▲1.66111.59 ▲0.18
Media Library /wp-admin/upload.php1,810 ▼05.03 ▲0.04146.54 ▲2.57119.62 ▼1.91

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/magnapass/magnapass.php:93

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === magnapass === )
Please take inspiration from this readme.txt

magnapass/magnapass.php Passed 13 tests

"MagnaPass" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
50 characters long description:
Add the MagnaPass widget to your WordPress website

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
There were no executable files found in this plugin70 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP116770

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions1
▷ Named functions1100.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