10% wp-markupcollection

Code Review | WP-MarkupCollection

WordPress plugin WP-MarkupCollection scored10%from 54 tests.

About plugin

  • Plugin page: wp-markupcollection
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2014
  • Latest release: May 9, 2014
  • Number of updates: 19
  • Update frequency: every 2.7 days
  • Top authors: ko1nksm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,572 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/wp-markupcollection/class-wp-markup-collection-class-factory.php+18
    Function create_function() is deprecated

Server metrics [RAM: ▼1.88MB] [CPU: ▼53.83ms] Passed 4 tests

Server-side resources used by WP-MarkupCollection
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.356.48 ▼35.58
Dashboard /wp-admin2.13 ▼1.177.77 ▼40.40
Posts /wp-admin/edit.php2.13 ▼1.228.12 ▼41.32
Add New Post /wp-admin/post-new.php2.13 ▼3.768.18 ▼98.01
Media Library /wp-admin/upload.php2.13 ▼1.107.68 ▼31.72
Markup Collection /wp-admin/options-general.php?page=wp-markupcollection/lib/pages/class-wp-markup-collection-option-admin-page.php2.137.48

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 678 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WP-MarkupCollection
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.351.69 ▼0.0345.59 ▲3.70
Dashboard /wp-admin2,202 ▲255.62 ▼0.0490.75 ▲2.0042.97 ▲3.80
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0341.26 ▲0.1337.90 ▲3.40
Add New Post /wp-admin/post-new.php6,355 ▲4,82926.25 ▲3.25898.00 ▲223.5556.04 ▲11.23
Media Library /wp-admin/upload.php1,401 ▲14.17 ▲0.0399.71 ▼6.2244.17 ▼2.68
Markup Collection /wp-admin/options-general.php?page=wp-markupcollection/lib/pages/class-wp-markup-collection-option-admin-page.php1,3222.0129.7041.43

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-markupcollection/class-wp-markup-collection-class-factory.php+18
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-markupcollection/lib/pages/class-wp-markup-collection-option-admin-page.php
    • > Deprecated in wp-content/plugins/wp-markupcollection/class-wp-markup-collection-class-factory.php+18
    Function create_function() is deprecated

SRP 0% 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-markupcollection/bootstrap.php
  • 633× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Text_Wiki_Render' not found in wp-content/plugins/wp-markupcollection/vendor/Text/Wiki/Render/Cowiki/Strong.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Text_Wiki_Render' not found in wp-content/plugins/wp-markupcollection/vendor/Text/Wiki/Render/Cowiki/Revise.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Text_Wiki_Parse' not found in wp-content/plugins/wp-markupcollection/vendor/Text/Wiki/Parse/Cowiki/Embed.php:42
    • > PHP Fatal error
      Uncaught Error: Class 'Text_Wiki_Parse' not found in wp-content/plugins/wp-markupcollection/vendor/Text/Wiki/Parse/Doku/Heading.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Text_Wiki_Parse' not found in wp-content/plugins/wp-markupcollection/vendor/Text/Wiki/Parse/Mediawiki/Superscript.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'Text_Wiki_Render' not found in wp-content/plugins/wp-markupcollection/vendor/Text/Wiki/Render/Latex/Url.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Text_Wiki_Parse' not found in wp-content/plugins/wp-markupcollection/vendor/Text/Wiki/Parse/Default/Blockquote.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Text_Wiki_Render' not found in wp-content/plugins/wp-markupcollection/vendor/Text/Wiki/Render/Latex/Blockquote.php:3
    • > PHP Fatal error
      Uncaught Error: Interface 'PEG_IParser' not found in wp-content/plugins/wp-markupcollection/vendor/PEG/Sequence.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Text_Wiki_Render' not found in wp-content/plugins/wp-markupcollection/vendor/Text/Wiki/Render/Latex/Anchor.php:15

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 errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: pandoc, dokuwiki, textile, multimarkdown, hatenasyntax...

wp-markupcollection/wp-markup-collection.php 85% from 13 tests

The principal PHP file in "WP-MarkupCollection" v. 1.1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-markupcollection.php" instead of "wp-markup-collection.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin25,807 lines of code in 658 files:
LanguageFilesBlank linesComment linesLines of code
PHP6577,63826,82125,678
PO File15163129

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity4.86
▷ Minimum class complexity1.00
▷ Maximum class complexity287.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces2
Interfaces4
Traits0
Classes662
▷ Abstract classes40.60%
▷ Concrete classes65899.40%
▷ Final classes00.00%
Methods1,533
▷ Static methods976.33%
▷ Public methods1,26482.45%
▷ Protected methods25116.37%
▷ Private methods181.17%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
Constants43
▷ Global constants4297.67%
▷ Class constants12.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin