84% mntextselector

Code Review | mnTextSelector

WordPress plugin mnTextSelector scored 84% from 54 tests.

About plugin

  • Plugin page: mntextselector
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2013
  • Latest release: Apr 2, 2013
  • Number of updates: 16
  • Update frequency: N/A
  • Top authors: mitnosirrag (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 746 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.37ms] Passed 4 tests

Server-side resources used by mnTextSelector
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.47 ▼4.89
Dashboard /wp-admin3.31 ▲0.0144.54 ▼2.98
Posts /wp-admin/edit.php3.36 ▲0.0045.62 ▼0.09
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.33 ▼1.51
Media Library /wp-admin/upload.php3.23 ▲0.0035.18 ▲1.55

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

mnTextSelector: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14913.60 ▼0.698.43 ▲6.3342.43 ▼9.17
Dashboard /wp-admin2,206 ▲215.87 ▲0.01106.46 ▼8.4138.25 ▼9.82
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0435.46 ▲1.4534.06 ▼3.09
Add New Post /wp-admin/post-new.php1,538 ▲2423.51 ▲6.05677.24 ▼4.5754.66 ▲2.56
Media Library /wp-admin/upload.php1,391 ▲34.26 ▲0.04102.77 ▲2.5740.79 ▼2.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mntextselector/plugin.mntextselector.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: highlighted text, text functions, jquery plugins, jquery, javascript

mntextselector/plugin.mntextselector.php 92% from 13 tests

The principal PHP file in "mnTextSelector" v. 1.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mntextselector.php" instead of "plugin.mntextselector.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 detected183 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21313144
PHP1121439

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.14
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin