90% mark-posts

Code Review | Mark Posts

WordPress plugin Mark Posts scored90%from 54 tests.

About plugin

  • Plugin page: mark-posts
  • Plugin version: 2.2.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.2
  • WordPress version: 6.3.1
  • First release: Apr 4, 2014
  • Latest release: Jul 6, 2023
  • Number of updates: 46
  • Update frequency: every 73.5 days
  • Top authors: flymke (73.91%)hofmannsven (28.26%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /9,631 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼7.84ms] Passed 4 tests

This is a short check of server-side resources used by Mark Posts
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0233.33 ▼2.68
Dashboard /wp-admin3.36 ▲0.0247.18 ▼10.86
Posts /wp-admin/edit.php3.41 ▲0.0545.38 ▼6.99
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.79 ▼10.82
Media Library /wp-admin/upload.php3.28 ▲0.0537.18 ▲1.19
Mark Posts /wp-admin/options-general.php?page=mark-posts3.3931.25

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
mark_posts_settings
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Mark Posts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲12113.33 ▼1.051.79 ▼0.0541.32 ▲5.15
Dashboard /wp-admin2,248 ▲605.88 ▼0.0198.57 ▼0.4942.02 ▼1.39
Posts /wp-admin/edit.php2,180 ▲912.35 ▲0.2937.28 ▼4.0334.98 ▼3.24
Add New Post /wp-admin/post-new.php6,236 ▲4,70319.08 ▼4.19894.63 ▲211.4665.39 ▲4.40
Media Library /wp-admin/upload.php1,394 ▲124.19 ▼0.0797.47 ▼5.2742.90 ▲0.74
Mark Posts /wp-admin/options-general.php?page=mark-posts8991.9829.8926.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • mark_posts_settings
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

mark-posts/mark-posts.php Passed 13 tests

"Mark Posts" version 2.2.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
89 characters long description:
Mark and highlight posts, pages and posts of custom post types within the posts overview.

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
There were no executable files found in this plugin1,452 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP8189564790
Markdown41220431
CSS215297
JavaScript2281994
JSON10040

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity17.00
▷ Minimum class complexity7.00
▷ Maximum class complexity34.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods36
▷ Static methods719.44%
▷ Public methods3186.11%
▷ Protected methods00.00%
▷ Private methods513.89%
Functions16
▷ Named functions1381.25%
▷ Anonymous functions318.75%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.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
No PNG files were detected