94% magicolumns

Code Review | Magicolumns

WordPress plugin Magicolumns scored 94% from 54 tests.

About plugin

  • Plugin page: magicolumns
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Oct 25, 2017
  • Latest release: Oct 25, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kangabell (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 404 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

A check of server-side resources used by Magicolumns
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0160.11 ▲6.08
Dashboard /wp-admin3.41 ▲0.0134.10 ▲2.27
Posts /wp-admin/edit.php3.65 ▲0.0140.06 ▲1.26
Add New Post /wp-admin/post-new.php6.88 ▼0.0988.85 ▼1,274.06
Media Library /wp-admin/upload.php3.30 ▲0.0023.47 ▼3.43

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Magicolumns
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,905 ▲15116.56 ▲0.949.57 ▲3.282.90 ▲0.63
Dashboard /wp-admin2,895 ▲416.17 ▲0.02119.77 ▼18.93225.38 ▲19.71
Posts /wp-admin/edit.php2,691 ▲63.23 ▲0.0165.50 ▼1.77145.33 ▼3.25
Add New Post /wp-admin/post-new.php1,661 ▼11216.19 ▼5.05416.24 ▼69.95219.55 ▲56.85
Media Library /wp-admin/upload.php1,695 ▼35.54 ▲0.02146.45 ▼6.05254.73 ▲63.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magicolumns/magicolumns.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: A description for screenshot #2 is required in magicolumns/assets to your readme.txt
You can take inspiration from this readme.txt

magicolumns/magicolumns.php Passed 13 tests

The main PHP file in "Magicolumns" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
65 characters long description:
Columns of text that stretch to fit, with easy-to-use shortcodes.

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 plugin54 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS19324
PHP1111415
Markdown17012
JavaScript1213

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected