10% never-po

Code Review | Never POEDIT

WordPress plugin Never POEDIT scored10%from 54 tests.

About plugin

  • Plugin page: never-po
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 6.3.1
  • First release: Aug 30, 2016
  • Latest release: Jan 31, 2020
  • Number of updates: 73
  • Update frequency: every 17.1 days
  • Top authors: 0 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,099 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
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Warning in wp-content/plugins/never-po/functions.php+18
    include_once(wp-content/plugins/never-po/install.php): failed to open stream: No such file or directory

Server metrics [RAM: ▲0.03MB] [CPU: ▼9.61ms] Passed 4 tests

A check of server-side resources used by Never POEDIT
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.43 ▼0.0337.05 ▼1.67
Dashboard /wp-admin3.35 ▲0.0543.96 ▼1.79
Posts /wp-admin/edit.php3.41 ▲0.0546.49 ▼5.81
Add New Post /wp-admin/post-new.php5.95 ▲0.0785.28 ▼29.14
Media Library /wp-admin/upload.php3.28 ▲0.0535.10 ▼1.70
Translation /wp-admin/options-general.php?page=neverpo-top-level-menu-page3.3432.76

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Never POEDIT
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,998 ▲2,22716.10 ▲1.510.79 ▼1.1815.15 ▼27.94
Dashboard /wp-admin4,927 ▲2,7396.25 ▲1.34180.66 ▲70.0753.74 ▲11.61
Posts /wp-admin/edit.php4,971 ▲2,8793.90 ▲1.8691.74 ▲51.4555.04 ▲20.48
Add New Post /wp-admin/post-new.php1,999 ▲47123.68 ▲5.42650.21 ▲39.3552.86 ▲0.64
Media Library /wp-admin/upload.php3,001 ▲1,6194.60 ▲0.39136.10 ▲37.8646.48 ▲3.16
Translation /wp-admin/options-general.php?page=neverpo-top-level-menu-page2,9545.18123.6559.75

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_neverpo_dictionary
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/never-po/never-po.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/never-po/options.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: no po file, translating

never-po/never-po.php 92% from 13 tests

The primary PHP file in "Never POEDIT" version 1.0.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin20,114 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript204,14011,00916,332
CSS131061822,778
PHP312580601
PO File2138215307
Sass218296

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions2175.00%
▷ Anonymous functions725.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/assets/media/horizontal_1.png2.69KB0.10KB▼ 96.19%
css/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
scripts/tables/DataTables-1.10.12/images/sort_desc_disabled.png0.14KB0.25KB0.00%
css/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%
css/assets/media/vertical.png0.93KB0.11KB▼ 88.25%