84% markitup

Code Review | MarkItUp!

WordPress plugin MarkItUp! scored84%from 54 tests.

About plugin

  • Plugin page: markitup
  • Plugin version: 1.3a...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 29, 2013
  • Latest release: May 22, 2013
  • Number of updates: 8
  • Update frequency: every 2.9 days
  • Top authors: kennydude (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,486 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.11ms] Passed 4 tests

Server-side resources used by MarkItUp!
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.03 ▼5.32
Dashboard /wp-admin3.33 ▲0.0345.10 ▼2.21
Posts /wp-admin/edit.php3.38 ▲0.0346.02 ▼3.15
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.38 ▼1.74
Media Library /wp-admin/upload.php3.25 ▲0.0334.30 ▼1.00

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for MarkItUp!
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.211.77 ▲0.2040.43 ▼2.70
Dashboard /wp-admin2,200 ▲125.86 ▲0.02102.98 ▼2.0441.60 ▼0.77
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0437.39 ▼6.4432.11 ▼8.89
Add New Post /wp-admin/post-new.php1,538 ▲523.32 ▲0.07661.32 ▼9.4247.51 ▼3.76
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0595.24 ▼17.4941.11 ▼8.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/markitup/markitup.php:44

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: editor, markdown

markitup/markitup.php 92% from 13 tests

The entry point to "MarkItUp!" version 1.3a... is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.3a...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin724 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP33271569
JavaScript32317132
CSS10023

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity24.75
▷ Minimum class complexity4.00
▷ Maximum class complexity36.00
Average method complexity7.33
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants28
▷ Global constants28100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin