83% markpress

Code Review | MarkPress

WordPress plugin MarkPress scored83%from 54 tests.

About plugin

  • Plugin page: markpress
  • Plugin version: 0.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.2
  • WordPress version: 6.3.1
  • First release: Aug 4, 2014
  • Latest release: Aug 7, 2014
  • Number of updates: 14
  • Update frequency: every 0.4 days
  • Top authors: gayadesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,247 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.31MB] [CPU: ▼9.75ms] Passed 4 tests

This is a short check of server-side resources used by MarkPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.395.07 ▼32.67
Dashboard /wp-admin3.36 ▲0.0652.06 ▼0.21
Posts /wp-admin/edit.php3.47 ▲0.1250.18 ▼2.44
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.71 ▼0.63
Media Library /wp-admin/upload.php3.28 ▲0.0535.35 ▼3.25
Add New /wp-admin/post-new.php?post_type=mp-note3.4050.38
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=mp-note3.2837.06
All Notes /wp-admin/edit.php?post_type=mp-note3.3235.62

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for MarkPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,562 ▼18413.30 ▼1.332.37 ▲0.5526.02 ▼21.17
Dashboard /wp-admin2,234 ▲465.82 ▲0.8999.39 ▼7.2638.90 ▼1.40
Posts /wp-admin/edit.php2,120 ▲312.02 ▲0.0537.21 ▲0.3732.25 ▼4.88
Add New Post /wp-admin/post-new.php1,576 ▲4118.38 ▼4.91617.79 ▼49.7471.39 ▲5.56
Media Library /wp-admin/upload.php1,416 ▲314.17 ▼0.0599.50 ▼5.6943.97 ▼2.03
Add New /wp-admin/post-new.php?post_type=mp-note2,2447.75169.2064.40
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=mp-note1,3382.1430.3929.65
All Notes /wp-admin/edit.php?post_type=mp-note1,0982.0033.6230.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_post() in wp-content/plugins/markpress/template/form.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_posts() in wp-content/plugins/markpress/template/aside.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/markpress/index.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_footer() in wp-content/plugins/markpress/template/footer.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/markpress/template/index.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/markpress/template/header.php:3

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Markdown editor and styled content), #2 (The editor on a mobile display), #3 (View / read mode on mobile display)
  • Plugin Name: Please specify the plugin name on the first line ( === markpress === )
The official readme.txt might help

markpress/index.php 92% from 13 tests

The main PHP file in "MarkPress" ver. 0.1.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("markpress.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin263 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP105119254
JavaScript2036
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.50
▷ Minimum class complexity2.00
▷ Maximum class complexity6.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.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
3 PNG files occupy 0.18MB with 0.12MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png92.70KB30.55KB▼ 67.05%
screenshot-2.png44.47KB13.61KB▼ 69.39%
screenshot-3.png46.08KB16.39KB▼ 64.43%