88% ada2go-mark-your-old-articles

Code Review | Ada2go - Mark your old Articles

WordPress plugin Ada2go - Mark your old Articles scored 88% from 54 tests.

About plugin

  • Plugin page: ada2go-mark-your-...
  • Plugin version: 1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.9.2
  • First release: Jun 7, 2021
  • Latest release: Jul 20, 2021
  • Number of updates: 10
  • Update frequency: every 5.1 days
  • Top authors: ada2go (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 199 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.34MB] [CPU: ▼302.98ms] Passed 4 tests

Analyzing server-side resources used by Ada2go - Mark your old Articles
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0543.80 ▼7.83
Dashboard /wp-admin3.41 ▲0.0132.75 ▼2.43
Posts /wp-admin/edit.php3.65 ▲0.0136.78 ▲0.38
Add New Post /wp-admin/post-new.php5.66 ▼1.3459.33 ▼1,201.17
Media Library /wp-admin/upload.php3.30 ▼0.0029.07 ▼0.50
Mark Older Posts /wp-admin/options-general.php?page=a2g_mop_settings3.3323.99

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, no new options
New tables

Browser metrics Passed 4 tests

An overview of browser requirements for Ada2go - Mark your old Articles
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,772 ▲1815.81 ▲0.075.68 ▲0.102.23 ▼0.55
Dashboard /wp-admin2,896 ▲386.12 ▼0.08115.80 ▼16.44151.97 ▼9.26
Posts /wp-admin/edit.php2,698 ▲133.24 ▼0.0062.13 ▼0.76133.09 ▼10.40
Add New Post /wp-admin/post-new.php1,716 ▲5521.06 ▼0.65415.33 ▲24.65155.76 ▲3.67
Media Library /wp-admin/upload.php1,705 ▲45.51 ▲0.04145.34 ▲9.76186.93 ▲1.99
Mark Older Posts /wp-admin/options-general.php?page=a2g_mop_settings1,1002.5654.32113.38

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 successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/ada2go-mark-your-old-articles/ada2go-mark-old-posts.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ada2go-mark-your-old-articles/settings_page.php:42

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


Plugin configuration 90% 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
6 plugin tags: old post, mark post, old article, markierung, hinweis...

ada2go-mark-your-old-articles/ada2go-mark-old-posts.php 77% from 13 tests

The primary PHP file in "Ada2go - Mark your old Articles" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 398 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ada2go-mark-your-old-articles.php" instead of "ada2go-mark-old-posts.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
Good job! No executable or dangerous file extensions detected291 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PO File1262695

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions9100.00%
▷ Anonymous functions00.00%
▷ 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
No PNG files were detected